﻿using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Net;
using System.Net.Http;
using System.Runtime.CompilerServices;
using System.Text;
using System.Web.Http;


namespace UFIDA.U8.BJSOFT.LF.MES.WEBAPI.Controllers
{
	public class VoucherRD01Controller : ApiController
	{
		/// <summary>
		/// 采购入库单新增接口
		/// </summary>
		/// <param name="json">参数</param>
		/// <returns>UserTest</returns>
		[HttpPost]
		public HttpResponseMessage VoucherRD01([FromBody] dynamic json)
		{
            return Request.CreateResponse(HttpStatusCode.NotFound, "此接口暂时未上线，敬请期待！");
            string filename = "采购入库";
			string jsons = Convert.ToString(json);
			DBHelp.LogException.WriteiLog(filename, "当前接收到的JSON:" + jsons, DBHelp.LogException.ilog, false);
			var products = Method.AddRD01.Insert(filename, jsons);//调用接口方法
			DBHelp.LogException.WriteiLog(filename, "接口调用结果:" + products, DBHelp.LogException.ilog, false);
			var productss = products;
			HttpResponseMessage result = new HttpResponseMessage { Content = new StringContent(productss, Encoding.GetEncoding("UTF-8"), "application/json") };
			return result;
		}
	}
}
